package org.example.service;

import org.example.dao.TestDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TestService {
    @Autowired
    TestDao testDao;

    @Transactional
    public String index(){
//        System.out.println(testDao.toString());
        return testDao.query();
    }
}
